﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace BT_Mang_Nhom13
{
    public class Student: IComparable<Student>
    {
        float Score;
        String Name;

        public Student(String newName, float newScore)
        {
            Name = newName;
            Score = newScore;
        }

        public override string ToString()
        {
            return String.Format("{0}:{1}",Name, Score);
        }

        public int CompareTo(Student y)
        {
            return Name.CompareTo(y.Name); 
        }

        public float StudentScore
        {
            get
            {
                return Score;
            }
        }
    }
}
